package main

import (
	"fmt"
	"time"
)

// 表1 班级组
// | ID | 班级 | 组 |
// 表2 班级课表
// | ID | 组ID | 上课时间 | 周次 | 课程ID |
// 表3 课程
// |ID|课程名字|课程老师|
// 表4 机房
// |ID| 机房名| 位置|
// 表5
// |ID|

type DayTime int

const (
	Morning1 DayTime = iota + 1
	Morning2
	Afternoon1
	Afternoon2
	Evening1
	Evening2
)

type CourseName string

type TimeTable map[time.Weekday]map[DayTime]CourseName

type Cource struct {
	CourceName string
	ClassTimes []DayTime
}

type Room struct {
	ID    int
	Name  string
	Times TimeTable
}

type Class struct {
	Name     string
	ID       int
	SecondID int
	Times    TimeTable
}

type Teacher struct {
	ID    int
	Name  string
	Times TimeTable
}

func main() {
	classes := `[
    {
        "name": "1班",
        "id": 1,
        "second_id": 1,
        "times":
        {
            "1":
            {
                "1": "1",
                "2": "2"
            }
        }
    }
]`

	fmt.Println(classes)
}
